<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@taglib uri="/struts-tags" prefix="s"%>
<%@taglib uri="/struts-dojo-tags" prefix="sx"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Pesquisar Nota Frequência</title>
    </head>
    <body>
        <h1>Pesquisar Nota Frequência</h1>
        <s:form action="NotaFrequencia">
            <s:select name="matriculaProfessor" list="professores" listKey="matricula" listValue="nome"></s:select>
            <s:submit action="pesquisarNotaFrequencia" value="Pesquisar"></s:submit>
            
            
            <table>
                <tr>
                    <th>Disciplina</th>
                    <th>Período</th>
                    <th>Ano/Semestre</th>
                    <th>Ação</th>
                </tr>
                
            <s:iterator value="turmas">
                <tr>
                    <td>
                        ${disciplina.nome}
                    </td>
                    <td>
                        ${disciplina.periodo}
                    </td>
                    <td>
                        ${ano} / ${semestre}
                    </td>
                    <td>
                        <s:url id="editarNotaFrequencia" action="editarNotaFrequencia">
                            <s:param name="codTurma" value="%{codTurma}"></s:param>
                        </s:url>
                        <s:a href="%{editarNotaFrequencia}">Editar</s:a>
                    </td>
                </tr>
            </s:iterator>
            </table>
        </s:form>
    </body>
</html>
